package util;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class JsonUtil {

	public static JSONObject newJsonErrorResponse(JSONArray errors) {
		JSONObject response = new JSONObject();
		response.put("status", "error");
		response.put("message", errors);
		return response;
	}

        public static JSONObject newJsonErrorResponse(String error) {
		JSONObject response = new JSONObject();
		response.put("status", "error");
		response.put("message", error);
		return response;
	}
        
}
